﻿using ModuleTonyMES.ViewModels;
using ModuleTonyMES.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace ModuleTonyMES
{
    /*
     * <module assemblyFile="ModuleTonyMES.dll" moduleType="ModuleTonyMES.TonyMESModule, ModuleTonyMES, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" moduleName="TonyMESModule" startupLoaded="True" />
     */
    public class TonyMESModule : IModule
    {
        public void OnInitialized(IContainerProvider containerProvider)
        {
            var regionManager = containerProvider.Resolve<IRegionManager>();
            regionManager.RegisterViewWithRegion("MESContentRegion", typeof(MESMainView));
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            //containerRegistry.RegisterForNavigation<MESMainView, MESMainViewModel>();
        }
    }
}